html,body{
  width: 100%;
  height: 100%;
  background: rgba(228, 228, 228, 0.22);
  overflow: hidden;
  user-select: none;
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  font: bold 20px "Courier";
  display: flex;
  align-items: center;
  justify-content: center;
}
#main{
  width: 360px;
  height: 420px;
  background: #b7d4a8;
  border: 10px solid black;
  margin: 0 auto;
  border-radius: 40px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-around;
}

@media screen and (max-width: 1000px) and (min-width: 700px) {
  #main{
    transform: scale(1.8, 1.8);
  }
}
@media screen and (max-width: 699px) and (min-width: 520px) {
  #main{
    transform: scale(2, 2);
  }
}

#stage{
  width: 304px;
  height: 304px;
  border: 2px solid black;
  position: relative;
  #snake{
    &>div{
      width: 10px;
      height: 10px;
      background: black;
      border: 1px solid #b7d4a8;
      position: absolute;
    }
  }
  #food{
    width: 10px;
    height: 10px;
    //background: black;
    //border: 1px solid #b7d4a8;
    position: absolute;
    left: 40px;
    top: 100px;
    //background: red;
    display: flex;
    flex-flow:row wrap;
    justify-content: space-between;
    align-content: space-between;
    &>div{
      width: 4px;
      height: 4px;
      background: black;
      transform: rotate(45deg);
    }
  }
}


#score-panel{
  width: 300px;
  display: flex;
  justify-content: space-between;
}

.main-content{
  height: 100%;
  width: 100%;
  //padding-top: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.button{
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.midden-item{
  display: flex;
  flex-direction: row;
}
.up,.left,.right,.down{
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 60px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}
.left{
  margin-right: 100px;
}

@media screen and (min-width: 1000px) {
  .button{
    display: none;
  }
}

@media screen and (min-width: 1000px) {
  .main-content{
    padding-top: 200px;
  }
}
